package com.androidx.p013lv.base.service;

import android.app.IntentService;
import android.content.Intent;
import com.androidx.p013lv.base.bean.request.ReqAd;
import com.androidx.p013lv.base.http.BaseRes;
import com.androidx.p013lv.base.http.HttpUtils;
import com.androidx.p013lv.base.http.UrlManager;
import com.androidx.p013lv.base.http.callback.HttpCallback;
import com.androidx.p013lv.base.utils.NetUtil;
import com.google.gson.Gson;

/* renamed from: com.androidx.lv.base.service.AdClickService */
public class AdClickService extends IntentService {
    public AdClickService() {
        super("AdClick");
    }

    /* access modifiers changed from: protected */
    public void onHandleIntent(Intent intent) {
        if (NetUtil.isNetworkAvailable()) {
            HttpUtils.getInsatance().cancelTag("AdClick");
            int intExtra = intent.getIntExtra("adId", 0);
            String adUpload = UrlManager.getInsatance().adUpload();
            ReqAd reqAd = new ReqAd();
            reqAd.setAdId(intExtra);
            HttpUtils.getInsatance().post(adUpload, new Gson().toJson(reqAd), new HttpCallback<BaseRes>("AdClick") {
                /* class com.androidx.p013lv.base.service.AdClickService.C10491 */

                public void onLvSuccess(BaseRes baseRes) {
                }
            });
        }
    }
}
